<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of login
 *
 * @author CHATERAB
 */

Class Project_model extends CI_Model
{
    function getHistory()
    {
       $query = $this->db->query('SELECT u.first_name,u.second_name ,p.id,p.name,p.zip,'
               . 'p.created_at from user u,projet p where p.user_id=u.id ');
        return $query->result_array();
    }
    function deletehistoty($id){
          $query = $this->db->query("DELETE FROM `atlanticdigi_db`."
                . "`projet` WHERE `projet`.`id` =".$id);
    }
    function addHistory($id){
      
    }
}
